package com.smw.service.impl;

import com.smw.dao.ProductDao;
import com.smw.entity.Product;
import com.smw.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImp implements ProductService {
    @Autowired
    private ProductDao productDao;

    @Override
    public List<Product> queryProductByTabs(Integer productType) {
        List<Product> pro = productDao.queryProductByTabs(productType);
        return pro;

    }
}
